import request from '@/utils/request'
// 查看月卡信息列表
export function getCardList(params) {
  return request({
    url: `parking/card/list`,
    params

  })
}
// 添加月卡
export function postParkingCard(data) {
  return request({
    url: `parking/card`,
    method: 'post',
    data

  })
}
// 获取编辑页月卡详情

export function getParkingCardDetail(id) {
  return request({
    url: `parking/card/detail/${id}`

  })
}
// 编辑
export function putParkingCardDetail(data) {
  return request({
    url: `parking/card/edit`,
    method: 'put',
    data
  })
}

// 删除月卡
export function deleteParkingCard(ids) {
  return request({
    url: `parking/card/${ids}`,
    method: 'DELETE'
  })
}
// 月卡续费
export function postParkingCardRecharge(data) {
  return request({
    url: `parking/card/recharge`,
    method: 'post',
    data
  })
}
// 查看月卡详情
export function getParkingCard(id) {
  return request({
    url: `parking/card/${id}`

  })
}
// 删除月卡（单个,批量）
export function deleteParkingCardBatchDel(ids) {
  return request({
    url: `parking/card/${ids}`,
    method: 'DELETE'

  })
}
